# -*- coding: utf-8 -*-
import sys
import os
from pyBookModel.bookManager import BookManager
from gui.pyBookGui import PyBookGUI
from PyQt4 import QtGui

if __name__ == "__main__":
    sys.path.append(os.path.abspath(os.curdir))
    
    bookMan = BookManager()
    app = QtGui.QApplication(sys.argv)
    ex = PyBookGUI()
    ex.setModel(bookMan)
    ex.show()

    sys.exit(app.exec_())

    
